import Vue from 'vue'
import Clickoutside from 'element-ui/src/utils/clickoutside'
Vue.directive('clickOutside', Clickoutside
//   {
//   bind(el, binding) {
//     el.__handleClickOutside__ = (event) => {
//       if (el && !el.contains(event.target)) {
//         binding.value(event)
//       }
//     }
//     document.addEventListener('click', el.__handleClickOutside__)
//   },
//   unbind(el) {
//     document.removeEventListener('click', el.__handleClickOutside__)
//     delete el.__handleClickOutside__
//   }
// }
)